#ifndef VOLUMEDISPLAY_H
#define VOLUMEDISPLAY_H

#include <QDialog>
#include <QTimer>

namespace Ui {
    class VolumeDisplay;
}

class VolumeDisplay : public QDialog {
    Q_OBJECT
public:
    VolumeDisplay(QWidget *parent = 0);
    ~VolumeDisplay();
    bool isMute() { return muted;}
    int getVolume();
    void setVolume(int volume);
public slots:
    void increaseVolume();
    void decreaseVolume();
    void mute();
signals:
    void volumeChanged(int);
protected:
    void changeEvent(QEvent *e);

private:
    Ui::VolumeDisplay *ui;
    int volumePercent;
    QTimer * hideTimer;
    bool muted;
};

#endif // VOLUMEDISPLAY_H
